// traditional_example.cpp - 传统实现文件
#include "traditional_example.h"

// 常量定义
const int TRADITIONAL_MAGIC_NUMBER = 42;

// 函数实现
void traditional_greet(const std::string& name) {
    std::cout << "Hello, " << name << " from traditional C++!" << std::endl;
}

// 类实现
TraditionalCounter::TraditionalCounter() : count(0) {}

void TraditionalCounter::increment() { 
    ++count; 
}

void TraditionalCounter::decrement() { 
    --count; 
}

int TraditionalCounter::get_count() const { 
    return count; 
}

void TraditionalCounter::print_count() const {
    std::cout << "Traditional Counter value: " << count << std::endl;
}
